package com.igeek.javase.extendstest;

/**
 * @author chenmin
 * 2023/7/13 11:07
 * @description TODO
 */
public class Persontest {

    public static void main(String[] args) {

        Person p1 = new Person("白娘子" , 1000 , false , null);
        Person p2 = new Person("小青" , 500 , false , null);
        Person p3 = new Person("许仙" , 25 , true , null);

        p1.marry(p3);
        p3.marry(p2);

    }
}
